package org.fusionide.builder.parsers.cfml.tags;

import org.fusionide.builder.parsers.cfml.CFMLTag;

public class Throw extends CFMLTag {

	public String type;

	public String message;

	public String detail;

	public String errorCode;

	public String extendedInfo;

	public String object;

	public Throw(String attributes, int startOffset) {
		super(attributes, startOffset);

		if (attributes == null)
			return;
		this.type = getAttribute("type");
		this.message = getAttribute("message");
		this.detail = getAttribute("detail");
		this.errorCode = getAttribute("errorCode");
		this.extendedInfo = getAttribute("extendedInfo");
		this.object = getAttribute("object");
	}

	@Override
	public boolean requiresClosingTag() {
		return false;
	}
	
	@Override
	public boolean acceptsChildren(CFMLTag tag) {
		return false;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getExtendedInfo() {
		return extendedInfo;
	}

	public void setExtendedInfo(String extendedInfo) {
		this.extendedInfo = extendedInfo;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getObject() {
		return object;
	}

	public void setObject(String object) {
		this.object = object;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
